package com.guanyong.files.application;


import com.guanyong.utils.LogHelper.LogHelper;
import com.guanyong.utils.UniqueID.DBObjectID;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by Eric.Zhang on 2017/1/2.
 */
@ImportResource("classpath:config/*.xml")
@SpringBootApplication
public class FileWebApplication  extends SpringBootServletInitializer {


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(FileWebApplication.class);

    }
    public static void main(String[] args) {
        SpringApplication.run(FileWebApplication.class,args);
        LogHelper.logger().info(new DBObjectID().toString());
    }
}
